<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- 实现跳转页面的功能 -->
		<!-- onchange 如果下拉框出现变化 则出发function -->
		<select id="result" onchange="new1()">
			<option value ="">请选择你要跳转的页面</option>
			<option value ="https://www.baidu.com">百度</option>
			<option value ="http://www.4399.com">4399游戏盒</option>
			<option value ="https://www.bilibili.com">哔哩哔哩</option>
		</select>
	</body>
	<script type="text/javascript">
			function new1(){
				var myUrl=document.getElementById('result').value;
				// location.href = 跳转页面
				location.href=myUrl;
				
				
				
			}
		
		
	</script>
</html>
